|
RAIS
3.2
|
This class encapsulates all dynamic mask management methods. More...
Public Types | |
| enum | SelectType { MainSelect = 0, ForInsert, Validation, ValidationForInsert } |
| enum | MultilookupResetType { NotReset = 0, ResetSource, ResetAll } |
Static Public Member Functions | |
| static DynamicMaskData | GetDynamicMaskData (int maskID, int tabID, int parentID, UserData currentUser, bool isNewRow) |
| This method retrieves from DB data for dynamic mask. | |
| static void | GetDynamicMaskDataProperties (DynamicMaskData dynamicMaskData) |
| This method retrieves from DB data properties for dynamic mask. | |
| static void | GetSingleListFieldValues (DynamicMaskData dynamicMaskData) |
| This method retrieves from DB dictionary of name field values and set the value of SingleListFieldValues property of dynamicMaskData object. | |
| static List< FieldData > | GetCurrentRowFieldsValues (DynamicMaskData dynamicMaskData, int parentID, int rowId) |
| This method retrieves from DB list of current row field values. | |
| static bool | GetLookupValues (DynamicMaskData dynamicMaskData, ref string returnMessage) |
| This method retrieves from DB dictionary of lookup field values and set the value of LookupValues property of fieldData object. | |
| static void | CreateNewRecord (DynamicMaskData dynamicMaskData) |
| This method creates new empty row in dynamicMaskData.DataSet property. | |
| static bool | SaveChanges (DynamicMaskData dynamicMaskData, Message.ModificationType modificationType, Message.ModificationType mainMaskModificationType, ref string returnMessage) |
| This method saves changes into DB. | |
| static bool | DeleteRecord (DynamicMaskData dynamicMaskData, ref string returnMessage) |
| This method deletes current record of dynamicMaskData object from DB. | |
| static bool | DeleteRecordFromList (DynamicMaskData dynamicMaskData, string keyValue, ref string returnMessage) |
| This method deletes current record of dynamicMaskData object from DB. | |
| static void | GetChildFiltersLookupValues (DynamicMaskData dynamicMaskData) |
| This method gets lookup values for child filters of dynamicMaskData object from DB. | |
| static void | GetDataSetForListMask (DynamicMaskData dynamicMaskData) |
| This method retrieves from DB data for ListWithFilter mask. | |
| static List< FieldData > | FillFieldDataListFromTableRow (Table table, DataRow row, bool fromValidationTable, int userID) |
| This method fills list of FieldData objects with data from DB. | |
| static SqlDataAdapter | GetDataAdapter (string sqlString, string sqlForInsert, DataSet dataSet) |
| This method returns to SqlDataAdapter object and fills dataSet object with SELECT result set. | |
| static Protector | GetProtector (string tableName, int rowID) |
| This method gets Protector for exact row of table. | |
| static Dictionary< int, DynamicMask > | GetDynamicMasks (int maskID) |
| This method retrieves from DB dynamic masks dictionary for mask. | |
| static bool | AddDynamicMask (int subcategoryID, string maskName, DynamicMask dynamicMask, ref string returnMessage) |
| This method adds record into Dynamic Mask table. | |
| static bool | SaveDynamicMask (DynamicMask dynamicMask, ref string returnMessage) |
| This method saves changes into Dynamic Mask table. | |
| static bool | RemoveDynamicMask (DynamicMask dynamicMask, ref string returnMessage) |
| This method removes Dynamic Mask from DB. | |
| static List< ConsistencyCheck > | GetConsistencyChecks (int dynamicMaskID) |
| This method retrieves from DB consistency check list for dynamic mask. | |
| static Dictionary< int, string > | GetAllNameFieldValues (Table table, string queryName) |
| This method retrieves from DB all name field values. | |
| static RecordTypes | GetRecordTypes () |
| This method retrieves from DB record types. | |
| static bool | AddConsistencyCheck (DynamicMask dynamicMask, ConsistencyCheck consistencyCheck, ref string returnMessage) |
| This method adds record into Consistency Check table. | |
| static bool | SaveConsistencyCheck (ConsistencyCheck consistencyCheck, ref string returnMessage) |
| This method saves changes into Consistency Check table. | |
| static bool | RemoveConsistencyCheck (ConsistencyCheck consistencyCheck, ref string returnMessage) |
| This method removes record from Consistency Check table. | |
| static Dictionary< string, int > | GetNonComplianceMajorCategories () |
| This method retrieves from DB all non-compliance major categories. | |
| static Dictionary< string, int > | GetNonComplianceCategoriesByMajorCategoryID (int majorCategoryID) |
| This method retrieves from DB non-compliance categories for specified major category. | |
| static bool | ValidateConsistencyChecks (DynamicMaskData dynamicMaskData, ref string returnMessage) |
| This method validates consistency checks for dynamic mask. | |
| static string[] | GetSelectStrings (Table table, int parentTableID, int parentID, int rowID, bool addRow) |
| This method builds SQL select string to retrieve rows from table. | |
Static Public Attributes | |
| static int | SelectedFacility |
| static int | SelectedDepartment |
This class encapsulates all dynamic mask management methods.
Definition at line 65 of file DynamicMaskManagement.cs.
Definition at line 58 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::AddConsistencyCheck | ( | DynamicMask | dynamicMask, |
| ConsistencyCheck | consistencyCheck, | ||
| ref string | returnMessage | ||
| ) | [static] |
This method adds record into Consistency Check table.
| dynamicMask | dynamic mask object consistency check belongs to. |
| consistencyCheck | object to be added into DB. |
| returnMessage | Message string about the action result. |
Definition at line 969 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::AddDynamicMask | ( | int | subcategoryID, |
| string | maskName, | ||
| DynamicMask | dynamicMask, | ||
| ref string | returnMessage | ||
| ) | [static] |
This method adds record into Dynamic Mask table.
| subcategoryID | id of the subcategory. |
| maskName | name of the menu item. |
| dynamicMask | object to be added into DB. |
| returnMessage | Message string about the action result. |
Definition at line 771 of file DynamicMaskManagement.cs.
| static void RAIS::DataAccessLayer::DynamicMaskManagement::CreateNewRecord | ( | DynamicMaskData | dynamicMaskData | ) | [static] |
This method creates new empty row in dynamicMaskData.DataSet property.
| dynamicMaskData | - dynamic mask data object |
Definition at line 299 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::DeleteRecord | ( | DynamicMaskData | dynamicMaskData, |
| ref string | returnMessage | ||
| ) | [static] |
This method deletes current record of dynamicMaskData object from DB.
| dynamicMaskData | - dynamic mask data object |
Definition at line 413 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::DeleteRecordFromList | ( | DynamicMaskData | dynamicMaskData, |
| string | keyValue, | ||
| ref string | returnMessage | ||
| ) | [static] |
This method deletes current record of dynamicMaskData object from DB.
| dynamicMaskData | - dynamic mask data object |
| keyValue | - value of primary key of orw to delete |
Definition at line 450 of file DynamicMaskManagement.cs.
| static List<FieldData> RAIS::DataAccessLayer::DynamicMaskManagement::FillFieldDataListFromTableRow | ( | Table | table, |
| DataRow | row, | ||
| bool | fromValidationTable, | ||
| int | userID | ||
| ) | [static] |
This method fills list of FieldData objects with data from DB.
| table | - Table object - contains the table fields description |
| row | - DataRow object to fill fieldData objects from |
Definition at line 527 of file DynamicMaskManagement.cs.
| static Dictionary<int, string> RAIS::DataAccessLayer::DynamicMaskManagement::GetAllNameFieldValues | ( | Table | table, |
| string | queryName | ||
| ) | [static] |
This method retrieves from DB all name field values.
| table | - the Table object, contains the name of table to retrieve data from |
Definition at line 909 of file DynamicMaskManagement.cs.
| static void RAIS::DataAccessLayer::DynamicMaskManagement::GetChildFiltersLookupValues | ( | DynamicMaskData | dynamicMaskData | ) | [static] |
This method gets lookup values for child filters of dynamicMaskData object from DB.
| dynamicMaskData | - dynamic mask data object |
Definition at line 484 of file DynamicMaskManagement.cs.
| static List<ConsistencyCheck> RAIS::DataAccessLayer::DynamicMaskManagement::GetConsistencyChecks | ( | int | dynamicMaskID | ) | [static] |
This method retrieves from DB consistency check list for dynamic mask.
| dynamicMaskID | - dynamic mask id |
Definition at line 877 of file DynamicMaskManagement.cs.
| static List<FieldData> RAIS::DataAccessLayer::DynamicMaskManagement::GetCurrentRowFieldsValues | ( | DynamicMaskData | dynamicMaskData, |
| int | parentID, | ||
| int | rowId | ||
| ) | [static] |
This method retrieves from DB list of current row field values.
| dynamicMaskData | - DynamicMaskData object |
| singleListFieldKey | - selected key in name field list |
Definition at line 170 of file DynamicMaskManagement.cs.
| static SqlDataAdapter RAIS::DataAccessLayer::DynamicMaskManagement::GetDataAdapter | ( | string | sqlString, |
| string | sqlForInsert, | ||
| DataSet | dataSet | ||
| ) | [static] |
This method returns to SqlDataAdapter object and fills dataSet object with SELECT result set.
| sqlString | - the string with SELECT sql command |
| dataSet | - the DataSet object to fill with select result data |
Definition at line 650 of file DynamicMaskManagement.cs.
| static void RAIS::DataAccessLayer::DynamicMaskManagement::GetDataSetForListMask | ( | DynamicMaskData | dynamicMaskData | ) | [static] |
This method retrieves from DB data for ListWithFilter mask.
| dynamicMaskData | - DynamicMaskData object |
Definition at line 507 of file DynamicMaskManagement.cs.
| static DynamicMaskData RAIS::DataAccessLayer::DynamicMaskManagement::GetDynamicMaskData | ( | int | maskID, |
| int | tabID, | ||
| int | parentID, | ||
| UserData | currentUser, | ||
| bool | isNewRow | ||
| ) | [static] |
This method retrieves from DB data for dynamic mask.
| maskID | - dynamic mask ID |
| tabID | - dynamic mask order in list of dynamic masks for current mask |
| parentID | - parent table row ID |
Definition at line 95 of file DynamicMaskManagement.cs.
| static void RAIS::DataAccessLayer::DynamicMaskManagement::GetDynamicMaskDataProperties | ( | DynamicMaskData | dynamicMaskData | ) | [static] |
This method retrieves from DB data properties for dynamic mask.
| dynamicMaskData | - DynamicMaskData object |
Definition at line 118 of file DynamicMaskManagement.cs.
| static Dictionary<int, DynamicMask> RAIS::DataAccessLayer::DynamicMaskManagement::GetDynamicMasks | ( | int | maskID | ) | [static] |
This method retrieves from DB dynamic masks dictionary for mask.
| maskID | - mask id |
Definition at line 718 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::GetLookupValues | ( | DynamicMaskData | dynamicMaskData, |
| ref string | returnMessage | ||
| ) | [static] |
This method retrieves from DB dictionary of lookup field values and set the value of LookupValues property of fieldData object.
| dynamicMaskData | - dynamic mask data object |
Definition at line 222 of file DynamicMaskManagement.cs.
| static Dictionary<string, int> RAIS::DataAccessLayer::DynamicMaskManagement::GetNonComplianceCategoriesByMajorCategoryID | ( | int | majorCategoryID | ) | [static] |
This method retrieves from DB non-compliance categories for specified major category.
| majorCategoryID | - the ID of non-compliance major category |
Definition at line 1098 of file DynamicMaskManagement.cs.
| static Dictionary<string, int> RAIS::DataAccessLayer::DynamicMaskManagement::GetNonComplianceMajorCategories | ( | ) | [static] |
This method retrieves from DB all non-compliance major categories.
Definition at line 1069 of file DynamicMaskManagement.cs.
| static Protector RAIS::DataAccessLayer::DynamicMaskManagement::GetProtector | ( | string | tableName, |
| int | rowID | ||
| ) | [static] |
This method gets Protector for exact row of table.
| tableName | - the name of the table |
| rowID | - the row's primiry key ID |
Definition at line 684 of file DynamicMaskManagement.cs.
| static RecordTypes RAIS::DataAccessLayer::DynamicMaskManagement::GetRecordTypes | ( | ) | [static] |
This method retrieves from DB record types.
Definition at line 918 of file DynamicMaskManagement.cs.
| static string [] RAIS::DataAccessLayer::DynamicMaskManagement::GetSelectStrings | ( | Table | table, |
| int | parentTableID, | ||
| int | parentID, | ||
| int | rowID, | ||
| bool | addRow | ||
| ) | [static] |
This method builds SQL select string to retrieve rows from table.
| table | - the Table object to retrieve rows from |
| singleListFieldKey | - the value of the primary key |
Definition at line 1906 of file DynamicMaskManagement.cs.
| static void RAIS::DataAccessLayer::DynamicMaskManagement::GetSingleListFieldValues | ( | DynamicMaskData | dynamicMaskData | ) | [static] |
This method retrieves from DB dictionary of name field values and set the value of SingleListFieldValues property of dynamicMaskData object.
| dynamicMaskData | - dynamic mask data object |
Definition at line 137 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::RemoveConsistencyCheck | ( | ConsistencyCheck | consistencyCheck, |
| ref string | returnMessage | ||
| ) | [static] |
This method removes record from Consistency Check table.
| consistencyCheck | object to be removed from DB. |
| returnMessage | Message string about the action result. |
Definition at line 1040 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::RemoveDynamicMask | ( | DynamicMask | dynamicMask, |
| ref string | returnMessage | ||
| ) | [static] |
This method removes Dynamic Mask from DB.
| dynamicMask | object to be removed from DB. |
| returnMessage | Message string about the action result. |
Definition at line 845 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::SaveChanges | ( | DynamicMaskData | dynamicMaskData, |
| Message.ModificationType | modificationType, | ||
| Message.ModificationType | mainMaskModificationType, | ||
| ref string | returnMessage | ||
| ) | [static] |
This method saves changes into DB.
| dynamicMaskData | - dynamic mask data object |
Definition at line 323 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::SaveConsistencyCheck | ( | ConsistencyCheck | consistencyCheck, |
| ref string | returnMessage | ||
| ) | [static] |
This method saves changes into Consistency Check table.
| consistencyCheck | object to be saved into DB. |
| returnMessage | Message string about the action result. |
Definition at line 1006 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::SaveDynamicMask | ( | DynamicMask | dynamicMask, |
| ref string | returnMessage | ||
| ) | [static] |
This method saves changes into Dynamic Mask table.
| dynamicMask | object to be saved into DB. |
| returnMessage | Message string about the action result. |
Definition at line 809 of file DynamicMaskManagement.cs.
| static bool RAIS::DataAccessLayer::DynamicMaskManagement::ValidateConsistencyChecks | ( | DynamicMaskData | dynamicMaskData, |
| ref string | returnMessage | ||
| ) | [static] |
This method validates consistency checks for dynamic mask.
| dynamicMaskData | - dynamic mask data object |
Definition at line 1827 of file DynamicMaskManagement.cs.
Definition at line 55 of file DynamicMaskManagement.cs.
Definition at line 54 of file DynamicMaskManagement.cs.